<?php $this->load->view('admin/public/head.html', array(
    'css' => array('/assets/admin/css/admin/common.css')
)); ?>
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper systemSetting" ng-controller="admin-system-setting">
    <!-- Content Header (Page header) -->
    <section class="content-header">
        <h1>
            系统管理
            <small>设置网站基础信息</small>
        </h1>
        <ol class="breadcrumb">
            <li><a href="#"><i class="fa fa-dashboard"></i> 首页</a></li>
            <li class="active">系统设置</li>
        </ol>
    </section>

    <!-- Main content -->
    <section class="content">

        <!-- Your Page Content Here -->
        <div class="row">
            <!-- right column -->
            <div class="col-md-12">
                <!-- Horizontal Form -->
                <div class="box box-info">
                    <div class="box-header with-border">
                        <h3 class="box-title">基本设置</h3>
                    </div>
                    <!-- /.box-header -->
                    <!-- form start -->
                    <form class="form-horizontal">
                        <div class="box-body">
                            <div class="form-group">
                                <label for="sitename" class="col-sm-2 control-label">网站名称</label>
                                <div class="col-sm-4">
                                    <input type="text" class="form-control" id="sitename" ng-model="baseSetting.siteName" placeholder="网站名称">
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-2 control-label">网站Logo</label>
                                <div class="col-sm-6">
                                    <div class="row">
                                        <div class="col-sm-12" ng-if="logoUrl">
                                            <div class="thumb-logo-box">
                                                <img ng-src="{{ logoUrl }}" class="thumb-logo" alt="">
                                            </div>
                                        </div>
                                        <div class="col-sm-12">
                                            <button id="uploader" class="btn btn-info pull-left" style="margin-top: 5px;">选择图片</button>
                                            <div class="thumb-logo-text pull-left">
                                                JPEG/PNG/GIF 190*44
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>

                            <div class="form-group">
                                <label for="beian" class="col-sm-2 control-label">ICP备案</label>
                                <div class="col-sm-4">
                                    <input type="text" class="form-control" id="beian" ng-model="baseSetting.beian" placeholder="ICP备案">
                                </div>
                            </div>

                            <div class="form-group">
                                <label for="copyright" class="col-sm-2 control-label">版权信息</label>
                                <div class="col-sm-4">
                                    <input type="text" class="form-control" id="copyright" ng-model="baseSetting.copyright" placeholder="版权信息">
                                </div>
                            </div>

                        </div>
                        <!-- /.box-body -->
                        <div class="box-footer">
                            <button type="submit" class="btn btn-default">取消</button>
                            <button type="submit" class="btn btn-info pull-right" ng-click="saveBaseSetting()">保存</button>
                        </div>
                        <!-- /.box-footer -->
                    </form>
                </div>
                <!-- /.box -->

                <!-- Horizontal Form -->
                <div class="box box-info">
                    <div class="box-header with-border">
                        <h3 class="box-title">联系方式配置</h3>
                    </div>
                    <!-- /.box-header -->
                    <!-- form start -->
                    <form class="form-horizontal">
                        <div class="box-body">
                            <div class="form-group">
                                <label for="telphone" class="col-sm-2 control-label">联系电话</label>
                                <div class="col-sm-4">
                                    <input type="text" class="form-control" ng-model="contact.telphone" id="telphone" placeholder="联系电话">
                                    <p class="help-block">区号与主体请用英文 "-" 分隔, 支持座机和 400 电话</p>
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="phone" class="col-sm-2 control-label">手机</label>
                                <div class="col-sm-4">
                                    <input type="text" class="form-control" ng-model="contact.phone" id="phone" placeholder="手机号">
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="qq" class="col-sm-2 control-label">QQ</label>
                                <div class="col-sm-4">
                                    <input type="text" class="form-control" ng-model="contact.qq" id="qq" placeholder="QQ账号">
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="email" class="col-sm-2 control-label">电子邮箱</label>
                                <div class="col-sm-4">
                                    <input type="text" class="form-control" ng-model="contact.email" id="email" placeholder="电子邮箱">
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="zip-code" class="col-sm-2 control-label">邮政编码</label>
                                <div class="col-sm-4">
                                    <input type="text" class="form-control" ng-model="contact.zipCode" id="zip-code" placeholder="邮政编码">
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="address" class="col-sm-2 control-label">公司地址</label>
                                <div class="col-sm-6">
                                    <input type="text" class="form-control" ng-model="contact.address" id="address" placeholder="公司地址">
                                </div>
                            </div>
                        </div>
                        <!-- /.box-body -->
                        <div class="box-footer">
                            <button type="submit" class="btn btn-default">取消</button>
                            <button type="submit" class="btn btn-info pull-right" ng-click="saveContact()">保存</button>
                        </div>
                        <!-- /.box-footer -->
                    </form>
                </div>
                <!-- /.box -->
            </div>
            <!--/.col (right) -->
        </div>


    </section>
    <!-- /.content -->
</div>

<!-- /.content-wrapper -->
<?php $this->load->view('admin/public/foot.html', array('js' => array(
    'http://cdn.staticfile.org/webuploader/0.1.0/webuploader.flashonly.min.js',
    '/assets/admin/js/system/setting.js'
))); ?>
